/*
 * @Descripttion: 
 * @version: 
 * @Author: 张敬坤
 * @Date: 2024-10-24 21:35:48
 * @LastEditors: Jikel
 * @LastEditTime: 2024-10-24 21:36:11
 */
export const api = (data, time = 100) => {
    return new Promise((resolve, reject) => {
        // 模拟异步操作，延迟一秒后返回结果
        setTimeout(() => {
            resolve({ code: 200, msg: "获取成功!", data: data });
        }, time); // 延迟1000毫秒（1秒）
    });
}